/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dataanalysis.gui.dataviewer;

import javax.swing.JTable;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;

/**
 *
 * @author Administrator
 */
public class TableContent extends JTable {

    public TableContent(int r,int c){
        super(r,c);
    }
    public TableContent(TableModel model){
        super(model);
    }

    public void setMinWidth(int width) {
        for (int i = 0; i < this.getColumnModel().getColumnCount(); i++) {
            TableColumn column = null;
            column = this.getColumnModel().getColumn(i);
            column.setMinWidth(width);
        }
    }

}
